
// 校验驱动配置
function validataDriverConfig($this){
	var driverConfig = {};
	var connector = $this.find("select[name='connector']").find(":selected").val();
	driverConfig.connector=connector;
	
	switch (connector) {
	case ConnectorConstantDatabase:
		//校验数据库，返回null意味着校验失败
		if(validateDatabaseDriverConfig($this, driverConfig)==null){
			return false;
		}
		break;
	case ConnectorConstantLdap:
		//校验LDAP
		if(validateLdapDriverConfig($this, driverConfig)==null){
			return false;
		}
		break;
	case ConnectorConstantXml:
		break;
	case ConnectorConstantCsv:
		break;
	default:
		break;
	}
	return driverConfig;
}


